package com.itheima.ydd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.itheima.ydd.entry.YddAdvpos;
import com.itheima.ydd.mapper.YddAdvposMapper;
import com.itheima.ydd.service.YddAdvposService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YddAdvposServiceImpl extends ServiceImpl<YddAdvposMapper, YddAdvpos> implements YddAdvposService {

    @Autowired
    private YddAdvposMapper yddAdvposMapper;
    @Override
    public Integer count(Integer id) {
        Integer count = yddAdvposMapper.count(id);
        return count;
    }

    @Override
    public void remove(Long id) {
        yddAdvposMapper.deleteById(id);
    }

}
